package com.yueshop.yueshopsearch.vo;


import com.yueshop.common.to.SkuEsModel;
import lombok.Data;

import java.util.List;
@Data
public class SearchResult {
    //查询到的商品喜喜
    private List<SkuEsModel> products;
    //封装的分页信息
    private Integer pageNum;//当前页码
    private Long total; //总记录数
    private Integer totalPages;//总页码数

    private  List<BrandVo>  brands;//当前查询到的结果,涉及的品牌
    private  List<CatalogVo> catalogs;//查询到的结果 涉及的分类
    private  List<AttrVo>  attrs; //查询到的结果 涉及的属性

    private List<Integer> pageNavs; // 导航页码

    @Data
    public static class  BrandVo{
        //品牌id
        private Long brandId;
        //品牌名
        private String brandName;
        //品牌图片
        private String brandImg;
    }
    @Data
    public static class  CatalogVo{
        //分类id
        private Long catalogId;
        //分类名
        private String catalogName;
    }
    @Data
    public static class  AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
